/*
 *  TFRenderDelegate.h
 *  Perceel
 *
 *  Created by Nicola Gigante on 15/03/08.
 *  Copyright 2008 Nicola Gigante. All rights reserved.
 *
 */

#ifndef __TF_LISTDELEGATE_H__
#define __TF_LISTDELEGATE_H__

#include <QAbstractItemDelegate>
#include <QModelIndex>
#include <QPainter>
#include <QFont>
#include <QMessageBox>

#include "tf.h"
#include "tf_renderer.h"

class TFListDelegate : public QAbstractItemDelegate
{
	Q_OBJECT
		
public:
	TFListDelegate(QObject *parent = NULL);
	
protected:
	virtual QSize sizeHint(const QStyleOptionViewItem &, const QModelIndex &) const;
	
	void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

#endif
